package org.jeecg.common.exception;

public class JeecgBootException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private String message = "";
	private Integer code = -100;

	public JeecgBootException(Throwable cause) {
		super(cause);
	}

	public JeecgBootException(String message) {
		super(message);
		this.message = message;
	}

	public JeecgBootException(Integer code, String message) {
		super(message);
		this.code = code;
		this.message = message;
	}

	public JeecgBootException(String message, Throwable cause) {
		super(message, cause);
		this.message = message;
	}

	public String getMessage() {
		return this.message;
	}

	public Integer getCode() {
		return this.code;
	}


}
